/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mlbs.session;

import com.mlbs.helper.CacheData;
import javax.ejb.Local;

/**
 * Reterive the data from cache for a given user based on application id, 
 * device id, and the index of the cache. Cache is maintained as an array where 
 * length of array is 5. Per application stores up to 5 pages per device in
 * the cache data.
 * @author hubharan
 */
@Local
public interface CachingSBLocal {

  
    public com.mlbs.helper.CacheData getCacheData(int appId, java.lang.String deviceId, String session, int index);

    boolean setUserCache(int appId, String deviceId, String session,  CacheData pageData);

    boolean clearCache(int appId, String session, String deviceId);
    
}
